package org.kfive.nova.aop.proxy;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 15-8-6
 * Time: 下午10:40
 * To change this template use File | Settings | File Templates.
 */
public class ProxyTest {

    public static void main(String []args){
        BusinessInterface task = new BusinessClass();

        InterceptorInterface interceptor = new InterceptorIntance();
        DynamicProxyHandler taskHandler = new DynamicProxyHandler(task,interceptor);

        BusinessInterface proxy = (BusinessInterface) taskHandler.wrap(task);
        proxy.execute();
    }
}
